import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EEntityType
    
    export  class EEntityType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static __read(arg1: SerializeStream): EEntityType
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 100) 
            {
                throw new MarshalException();
            }
            return EEntityType.convert(loc1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EEntityType
        {
            return new EEntityType(arg1);
        }

        public static /* const */_EEntityTypeBoss: int=2;

        public static /* const */_EEntityTypePet: int=3;

        public static /* const */_EEntityTypeDropItem: int=4;

        public static /* const */_EEntityTypeTransport: int=5;

        public static /* const */_EEntityTypeEscort: int=6;

        public static /* const */_EEntityTypeDefenseCopyItem: int=7;

        public static /* const */_EEntityTypeNpcShop: int=8;

        public static /* const */_EEntityTypePetInExplore: int=9;

        public static /* const */_EEntityTypePetInArena: int=10;

        public static /* const */_EEntityTypeDropLottery: int=11;

        public static /* const */_EEntityTypeLifeBoss: int=12;

        public static /* const */_EEntityTypeLifeBossEx: int=13;

        public static /* const */_EEntityTypePlant: int=14;

        public static /* const */_EEntityTypeGroup: int=50;

        public static /* const */_EEntityTypeGuild: int=51;

        public static /* const */_EEntityTypeBattle: int=52;

        public static /* const */_EEntityTypeSpa: int=53;

        public static /* const */_EEntityTypeVIPHook: int=54;

        public static /* const */_EEntityTypeGuildWar: int=55;

        public static /* const */_EEntityTypeArena: int=56;

        public static /* const */_EEntityTypeFairyland: int=57;

        public static /* const */_EEntityTypePeaceField: int=58;

        public static /* const */_EEntityTypeWedding: int=59;

        public static /* const */_EEntityTypePetExplore: int=60;

        public static /* const */_EEntityTypeNewBattle: int=61;

        public static /* const */_EEntityTypeGuildAltar: int=62;

        public static /* const */_EEntityTypeGuildStruggle: int=63;

        public static /* const */_EEntityTypeArenaCross: int=64;

        public static /* const */_EEntityTypeSkyCity: int=65;

        public static /* const */_EEntityTypeCrossSpa: int=66;

        public static /* const */_EEntityTypeGuildPasture: int=67;

        public static /* const */_EEntityTypeGuildDefense: int=68;

        public static /* const */_EEntityTypeCrossBeach: int=69;

        public static /* const */_EEntityTypePetArena: int=70;

        public static /* const */_EEntityTypeGangFights: int=71;

        public static /* const */_EEntityTypeRace: int=72;

        public static /* const */_EEntityTypeCrossBoss: int=73;

        public static /* const */_EEntityTypeCrossStair: int=74;

        public static /* const */_EEntityTypeWrestle: int=75;

        public static /* const */_EEntityTypeBossField: int=76;

        public static /* const */_EEntityTypeCrossDefense: int=77;

        public static /* const */_EEntityTypeCrossSecret: int=78;

        public static /* const */_EEntityTypeRobCityOne: int=79;

        public static /* const */_EEntityTypeRobCityTwo: int=80;

        public static /* const */_EEntityTypeRobCityThree: int=81;

        public static /* const */_EEntityTypeEatBeans: int=82;

        public static /* const */_EEntityTypeLostSea: int=83;

        public static /* const */_EEntityTypeCrossSea: int=84;

        public static /* const */_EEntityTypeCrossBossEntrance: int=86;

        public static /* const */_EEntityTypeRobFlag: int=87;

        public static /* const */_EEntityTypeCrossBossField: int=88;

        public static /* const */_EEntityTypeGuildElite: int=89;

        public static /* const */_EEntityTypeCrossGuildWar: int=90;

        public static /* const */_EEntityTypeGuildGroup: int=91;

        public static /* const */_EEntityTypePetInRobIsland: int=92;

        public static /* const */_EEntityTypeCountryMoney: int=85;

        public static /* const */_EEntityTypeUpgradeCrossBossEntrance: int=94;

        public static /* const */_EEntityTypeCrossSpiritWar: int=95;

        public static /* const */_EEntityTypeCrossSWWaitingRoom: int=96;

        public static /* const */_EEntityTypeLadder: int=97;

        public static /* const */_EEntityTypeDominion: int=98;

        public static /* const */_EEntityTypeChaosFight: int=99;

        public static /* const */_EEntityTypePlayer: int=1;

        public static /* const */_EEntityTypeUpgradeCrossBoss: int=93;

        public /* var */__value: int;
    }
